package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.NewsComment;
import cn.wolfcode.trip.base.domain.NewsCommentSecond;
import cn.wolfcode.trip.base.mapper.NewsCommentSecondMapper;
import cn.wolfcode.trip.base.service.INewsCommentSecondService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class NewsCommentSecondServiceImpl implements INewsCommentSecondService {
    @Autowired
    private NewsCommentSecondMapper secondMapper;
    @Override
    public void save(NewsCommentSecond newsCommentSecond) {
            newsCommentSecond.setCommentTime(new Date());
            secondMapper.insert(newsCommentSecond);
        }

}
